<div class="card mb-4">
    <div class="card-header">
        <h5 class="mb-0">管理菜单</h5>
    </div>
    <div class="list-group list-group-flush">
        <a href="{{ url_for('admin.index') }}" class="list-group-item list-group-item-action {% if request.endpoint == 'admin.index' %}active{% endif %}">
            <i class="bi bi-speedometer2"></i> 仪表盘
        </a>
        <a href="{{ url_for('admin.posts') }}" class="list-group-item list-group-item-action {% if request.endpoint == 'admin.posts' %}active{% endif %}">
            <i class="bi bi-file-earmark-text"></i> 文章管理
        </a>
        <a href="{{ url_for('admin.comments') }}" class="list-group-item list-group-item-action {% if request.endpoint == 'admin.comments' %}active{% endif %}">
            <i class="bi bi-chat-left-text"></i> 评论管理
        </a>
        <a href="{{ url_for('admin.tags') }}" class="list-group-item list-group-item-action {% if request.endpoint == 'admin.tags' %}active{% endif %}">
            <i class="bi bi-tags"></i> 标签管理
        </a>
        <a href="{{ url_for('main.index') }}" class="list-group-item list-group-item-action">
            <i class="bi bi-house"></i> 返回首页
        </a>
    </div>
</div>

<div class="card">
    <div class="card-header">
        <h5 class="mb-0">快速创建</h5>
    </div>
    <div class="card-body">
        <div class="d-grid gap-2">
            <a href="{{ url_for('admin.new_post') }}" class="btn btn-success mb-2">
                <i class="bi bi-file-earmark-plus"></i> 新建文章
            </a>
            <a href="{{ url_for('admin.new_tag') }}" class="btn btn-info">
                <i class="bi bi-tag"></i> 新建标签
            </a>
        </div>
    </div>
</div>